package models

import (
	"gitee.com/sansaniot/ssiot-core/httpmvc/model"

	dto "ssadmin/common/query"
)

type Rule struct {
	Id         string        `json:"id"`
	Name       string        `json:"name"`
	Desc       string        `json:"desc" `
	ProductId  string        `json:"productId"`
	Creator    string        `json:"creator"`
	Status     string        `json:"status"`
	DevSn      string        `json:"devSn"`
	AgencyId   string        `json:"agency_id"`
	CreateTime dto.LocalTime `json:"createTime"`
	UpdateTime dto.LocalTime `json:"updateTime"`
	model.Model
}

func (r *Rule) TableName() string {
	return "sys_rule"
}

func (r *Rule) GetId() interface{} {
	return r.Id
}
